Optimal. Leaf size=49 \[ -\frac {x \sqrt {-1+a x} \sqrt {1+a x}}{4 a}-\frac {\cosh ^{-1}(a x)}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5883, 92, 54}
\begin {gather*} -\frac {\cosh ^{-1}(a x)}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x)-\frac {x \sqrt {a x-1} \sqrt {a x+1}}{4 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 92
Rule 5883
Rubi steps
\begin {align*} \int x \cosh ^{-1}(a x) \, dx &=\frac {1}{2} x^2 \cosh ^{-1}(a x)-\frac {1}{2} a \int \frac {x^2}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx\\ &=-\frac {x \sqrt {-1+a x} \sqrt {1+a x}}{4 a}+\frac {1}{2} x^2 \cosh ^{-1}(a x)-\frac {\int \frac {1}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx}{4 a}\\ &=-\frac {x \sqrt {-1+a x} \sqrt {1+a x}}{4 a}-\frac {\cosh ^{-1}(a x)}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 61, normalized size = 1.24 \begin {gather*} -\frac {a x \sqrt {-1+a x} \sqrt {1+a x}-2 a^2 x^2 \cosh ^{-1}(a x)+2 \tanh ^{-1}\left (\sqrt {\frac {-1+a x}{1+a x}}\right )}{4 a^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.46, size = 76, normalized size = 1.55
method | result | size |
derivativedivides | \(\frac {\frac {a^{2} x^{2} \mathrm {arccosh}\left (a x \right )}{2}-\frac {\sqrt {a x -1}\, \sqrt {a x +1}\, \left (a x \sqrt {a^{2} x^{2}-1}+\ln \left (a x +\sqrt {a^{2} x^{2}-1}\right )\right )}{4 \sqrt {a^{2} x^{2}-1}}}{a^{2}}\) | \(76\) |
default | \(\frac {\frac {a^{2} x^{2} \mathrm {arccosh}\left (a x \right )}{2}-\frac {\sqrt {a x -1}\, \sqrt {a x +1}\, \left (a x \sqrt {a^{2} x^{2}-1}+\ln \left (a x +\sqrt {a^{2} x^{2}-1}\right )\right )}{4 \sqrt {a^{2} x^{2}-1}}}{a^{2}}\) | \(76\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 56, normalized size = 1.14 \begin {gather*} \frac {1}{2} \, x^{2} \operatorname {arcosh}\left (a x\right ) - \frac {1}{4} \, a {\left (\frac {\sqrt {a^{2} x^{2} - 1} x}{a^{2}} + \frac {\log \left (2 \, a^{2} x + 2 \, \sqrt {a^{2} x^{2} - 1} a\right )}{a^{3}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 48, normalized size = 0.98 \begin {gather*} -\frac {\sqrt {a^{2} x^{2} - 1} a x - {\left (2 \, a^{2} x^{2} - 1\right )} \log \left (a x + \sqrt {a^{2} x^{2} - 1}\right )}{4 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.09, size = 44, normalized size = 0.90 \begin {gather*} \begin {cases} \frac {x^{2} \operatorname {acosh}{\left (a x \right )}}{2} - \frac {x \sqrt {a^{2} x^{2} - 1}}{4 a} - \frac {\operatorname {acosh}{\left (a x \right )}}{4 a^{2}} & \text {for}\: a \neq 0 \\\frac {i \pi x^{2}}{4} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 70, normalized size = 1.43 \begin {gather*} \frac {1}{2} \, x^{2} \log \left (a x + \sqrt {a^{2} x^{2} - 1}\right ) - \frac {1}{4} \, a {\left (\frac {\sqrt {a^{2} x^{2} - 1} x}{a^{2}} - \frac {\log \left ({\left | -x {\left | a \right |} + \sqrt {a^{2} x^{2} - 1} \right |}\right )}{a^{2} {\left | a \right |}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 39, normalized size = 0.80 \begin {gather*} x\,\mathrm {acosh}\left (a\,x\right )\,\left (\frac {x}{2}-\frac {1}{4\,a^2\,x}\right )-\frac {x\,\sqrt {a\,x-1}\,\sqrt {a\,x+1}}{4\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________